/*
 * CArbre.h
 *
 *      Author: grifos
 */

#ifndef CARBRE_H_
#define CARBRE_H_
#include <osg/Switch>
#include <osg/Geometry>
#include <osg/Texture2D>
#include <osg/BlendFunc>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osg/AlphaFunc>
#include <osg/MatrixTransform>

class CArbre {
private:
	osg::ref_ptr<osg::MatrixTransform> _root;
public:
	CArbre();
	virtual ~CArbre();

	osg::MatrixTransform* getNode(){ return _root.get(); }
	osg::Drawable * createDrawable(int mode,const float & scale, osg::StateSet* bbState);
};

#endif /* CARBRE_H_ */
